<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>

    <!-- 基本样式 -->
    <link rel="stylesheet" href="../../src/mixins/style/normalize.css" />
    <link rel="stylesheet" href="../../src/com_third/font-awesome/css/font-awesome.css">
    <link rel="stylesheet" href="../../src/mixins/style/base.css" />
    <!-- 引入样式 -->
    <!-- <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css"> -->
    <link href="https://cdn.bootcss.com/element-ui/2.4.0/theme-chalk/index.css" rel="stylesheet">
    <link href="https://cdn.bootcss.com/layer/3.1.0/theme/default/layer.css" rel="stylesheet">


    <style>

        .container{
            margin-top: 20px;
        }

        .el-form-item__label {
            width: 18% !important;
            text-align: right;
            display: inline-block;
        }

        .el-form--inline .el-form-item {
            display: block;
            margin-right: 10px;
        }

        .el-form--inline .el-form-item__content {
            width: 70%;
        }

        .el-select {
            width: 100%;
        }

        .layui-btn+.layui-btn {
            margin-left: 10px;
        }

        .layui-btn-normal {
            background-color: #1E9FFF;
        }

        .layui-btn {
            display: inline-block;
            height: 38px;
            line-height: 38px;
            padding: 0 18px;
            background-color: #009688;
            color: #fff;
            white-space: nowrap;
            text-align: center;
            font-size: 14px;
            border: none;
            border-radius: 2px;
            cursor: pointer;
        }


        .form-btn {
            width: 100%;
            display: inline-block;
            text-align: center;
        }

        .uploadFile{
            display: block;
        }
    </style>

</head>

<body>
    <div v-cloak class="container clearfix" id="app">
        <el-form :inline="true" :model="configForm" class="demo-form-inline" label-width="90px">
            <input type="hidden" v-model="configForm.id" />
            <input type="hidden" v-model="configForm.parentId" />
            <input type="hidden" v-model="configForm.createTime" />
            <input type="hidden" v-model="configForm.updateTime" />
            <input type="hidden" v-model="configForm.position"/>
            <input type="hidden" v-model="configForm.templet"/>
            <input type="hidden" v-model="configForm.level" value="1"/>

            <el-form-item label="首页/分类">
                <el-select v-model="configForm.position" clearable loading-text="加载中..." @change='changeTemplate' filterable placeholder="==请选择==">
                    <el-option v-for="item in positionList" :key="item.id" :label="item.text" :value="item.id">
                        <span style="float: left">{{ item.text }}</span>
                    </el-option>
                </el-select>
            </el-form-item>

            <el-form-item label="分类标题">
                <el-input v-model="configForm.name" placeholder="文章标识"></el-input>
            </el-form-item>

            <el-form-item label="是否启用">
                <el-select v-model="configForm.dataFlag" clearable loading-text="加载中..." filterable placeholder="==请选择==">
                    <el-option v-for="item in dataFlagList" :key="item.id" :label="item.text" :value="item.id">
                        <span style="float: left">{{ item.text }}</span>
                    </el-option>
                </el-select>
            </el-form-item>
        </el-form>


        <div class="form-btn">
            <button class="layui-btn layui-btn-normal" @click="save">立即提交</button>
        </div>

    </div>

    <script src="../../src/lib/jquery.js"></script>
    <script src="../../src/lib/sea-all.js"></script>
    <script src="../../src/lib/vue.js"></script>
    <script src="../../src/lib/vue-router.js"></script>
    <script src="../src/config.js"></script>
    <script src="../../boot.js"></script>


    <!-- 引入组件库 -->
    <!-- <script src="https://unpkg.com/element-ui/lib/index.js"></script> -->
    <script src="https://cdn.bootcss.com/element-ui/2.4.0/index.js"></script>
    <script src="https://cdn.bootcss.com/layer/3.1.0/layer.js"></script>


    <script>
        $(function () {
            seajs.use('./edit.js');
        })
    </script>



</body>

</html>